class ApplicationController < ActionController::Base
 layout 'metronic'
  # Prevent CSRF attacks by raising an exception.
  # For APIs, you may want to use :null_session instead.
  protect_from_forgery with: :exception

  # Todos los metodos de todos los controladores requieren logueo
  before_filter :require_login

  private
    # Si ingresa a algo que necesita logueo... (esta funcion la utiliza internamente sorcery)
		def not_authenticated
		  redirect_to login_path, alert: "Debe ingresar primero."
		end
end
